#include <stdio.h>

int main(void){
	int s[]={2,9,4,8,5,3,9,6};
	int x[sizeof(s)/sizeof(s[0])];
	int i=0;
	for (;i<8;i++){
		x[i]=s[(i+5)%8];
		printf("%d ",x[i]);
	}
	
}
